<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="aaa">
    <div style="width: 100px;height: 100px;background-color: red" @click="clickMe('div')">
        <input type="button" value="点我" @click.stop="clickMe('btn')">
    </div>
</div>

</body>
</html>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    let dataobj = {
        user: {
            likes: []
        }
    };
    let aa = new Vue({
        el: "#aaa",
        data: dataobj,
        methods: {
            clickMe(val) {
                alert(val)
            }
        }
    })
</script>